import assessCheckApi from './api'
import { axios } from '@/utils/request'
import router from '@/router/index'
import blobType from '@/common/blobType'
//根据Id查询
export function queryById(data){
  return axios({
    url: assessCheckApi.queryById,
    method:'get' ,
    params:{...data},
    url_1:'outside'
  })
}
//删除
export function deleteUrl(params){
    return axios({
      url: assessCheckApi.deleteUrl,
      method:'delete' ,
      params:{...params},
      url_1:'outside'
    })
}

//编辑
export function editUrl(params){
    return axios({
      url: assessCheckApi.editUrl,
      method:'post' ,
      data:{...params},
      url_1:'outside'
    })
}

//树
export function querySpcyDeptWithTree(data){
  return axios({
    url: assessCheckApi.querySpcyDeptWithTree,
    method:'get' ,
    params:{...data},
    url_1:'outside'
  })
}

//选择对象
export function queryUserWithOrgName(data){
  return axios({
    url: assessCheckApi.queryUserWithOrgName,
    method:'get' ,
    params:{...data},
    url_1:'outside'
  })
}

//暂存
export function addUrl(params){
  return axios({
    url: assessCheckApi.addUrl,
    method:'post' ,
    data:{...params},
    url_1:'outside'
  })
}

//直接发送
export function sendUrl(params){
  return axios({
    url: assessCheckApi.sendUrl,
    method:'post' ,
    data:{...params},
    url_1:'outside'
  })
}